package com.zimi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zimi.model.SysOrg;
import com.zimi.model.SysOrgExtend;
import com.zimi.model.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 系统组织机构 mapper
 *
 * @author lnintr
 * @since 2019-05-20
 */
@Mapper
public interface SysOrgExtendMapper extends BaseMapper<SysOrgExtend> {

    List<SysOrgExtend> selectRecycleList();

    List<SysOrgExtend> selectOrgList(SysOrgExtend record);

    List<SysOrgExtend> selectFunctionList(SysOrgExtend record);

    List<SysUser> selectUserListByActivity(int id);

    List<SysOrgExtend> selectUserListByIds(List<Integer> ids);

    List<SysOrgExtend> selectOrgPostList(Map record);

    List<SysOrgExtend> selectPostUserList(Map record);

    int selectUserCountByIds(List<Integer> ids);

    List<SysOrg> selectMineOrgList(Map map);

    List<SysOrgExtend> getMineOgnList(Map map);

    List<SysOrgExtend> getMineOrgList(Map map);

    List<SysOrgExtend> getMineOgnCateList(List<Integer> ids);
}
